<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>人人P2P - 最新美剧、电影下载</title>
        <meta name="keywords" content="人人P2P,我爱P2P,yyste.com,磁力下载,BT下载,磁力下载,电驴下载,ED2K,magnet下载,迅雷下载,美剧,日剧,韩剧,电影,高清电影,游戏,DVDrip,720P,1080P" />
        <meta name="description" content="BT磁力下载,电驴,ED2K下载,迅雷下载,人人P2P为您奉献最新的海外影视剧" />
        <meta name="title" content="人人P2P - 最新美剧、电影下载" />
		<meta name="baidu_union_verify" content="b8f9ad093695dde8f3b1c7806ef3ac7a">

        {include file="include/header.tpl"}
    </head>
    <body>
        {include file="include/top.tpl"}
        {include file="include/recommend.tpl"}

        <div class="row-fluid">
            <div class="span8">
                <div class="area">
                    <legend><h4>全部分类 (15万电影，电视剧资源) </h4>
                    </legend>
                    <div>
                        {foreach from=$categories item=item key=key}
                        {if $smarty.const.debug }
                        <a style="margin-bottom:5px;" class="btn btn-small" href="index.php?action=category&id={$key}" target="_blank" alt="{$item.name}"><b>{$item.name}</b>({$item.count})</a>
                        {else}
                        <a style="margin-bottom:5px;" class="btn btn-small" href="/category?id={$key}" target="_blank" alt="{$item}"><b>{$item.name}</b>({$item.count})</a>
                        {/if}

                        {/foreach}
                    </div>
                </div>
            </div>

            <div class="span4">
                <div class="area">
                    <legend><h4>在微信上关注我们~</h4>
                    </legend>
                    <div>
                        <center><img src="{$smarty.const.IMG_DIR}weixin.jpg" style="width:125px;height:125px;" alt="在微信上关注我们" /></center>
                        <span id="weixinShare" style="display:none"><a href="javascript:weixinShareTimeline();">分享到朋友圈</a></span>
                    </div>
                </div>
            </div>
        </div>

        {foreach from=$cids key=cid item=detail}
        <div class="row-fluid">
            <div class="area">
                <legend>
                    <h4>{$detail.name}
                        <span class="pull-right">
                        {if $smarty.const.debug }
                        <a href="index.php?action=category&id={$cid}" target="_blank" alt="{$detail.name}">更多&gt;&gt;</a>
                        {else}
                        <a href="/category?id={$cid}">更多&gt;&gt;</a>
                        {/if}
                        </span>
                    </h4>
                </legend>
                <ul class="x-movie-list nav nav-pills" style="padding-top:0;">
                    {foreach from=$detail.items item=item}
                    <li>
                        <div class="span9">
                            {if $item.imgurl == '' }
                            <img src="{$smarty.const.IMG_DIR}default.jpg" class="moviecover" alt="{$item.title}" itemid="{$item.id}" />
                            {else}
                            <img src="{$item.imgurl}" class="moviecover" alt="{$item.title}" />
                            {/if}
                            {if $smarty.const.debug }
                            <a href="index.php?action=item&id={$item.id}" target="_blank">{$item.title}</a>
                            {else}
                            <a href="/item?id={$item.id}" target="_blank">{$item.title}</a>
                            {/if}
                        </div>
                        <div class="span3"><a href="{$item.magurl}">磁力下载</a>&nbsp; | &nbsp;<a href="{$item.edkurl}">电驴下载</a></div>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        {/foreach}

        {include file="include/bottom.tpl"}
